package it.mauriziobasile.sincrodir.gui;


import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeNode;

public class DifferenzeTreeModel extends DefaultTreeModel {
    private static final long serialVersionUID = -8187655289154958642L;
    
    public DifferenzeTreeModel(TreeNode root) {
        super(root);
    }
    
    @Override
    public void setRoot(TreeNode root) {
        super.setRoot(root);
        this.root = (DefaultMutableTreeNode) root;
    }
    
    public DefaultMutableTreeNode getRoot() {
        return (DefaultMutableTreeNode)super.getRoot();
    }
}
